﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Zor_DAL;

namespace Zor_Bll
{
    public class AnnualTaxChart_Bll<T> where T : class
    {
        /// <summary>
        /// 获取年度税收统计表
        /// </summary>
        /// <param name="index"></param>
        /// <param name="TotalCount"></param>
        /// <param name="where"></param>
        /// <returns></returns>
        public static List<T> GetPageList(int index, out int TotalCount, string where)
        {
            var sqlSurch = string.Empty;
            if (where != null && where != "")
                sqlSurch += "NatPer_IDNumber = '" + where + "'";

            else
                sqlSurch = " 1 = 1";
            return PagerHelp<T>.GetPagerList(index, "Zor_PayTaxeCount", "Count_Id", out TotalCount, sqlSurch);
        }

        /// <summary>
        /// 获取年度税收统计饼状图数据
        /// </summary>
        /// <returns></returns>
        public static List<T> GetATList()
        {
            return AnnualTaxChart_DAL<T>.GetATList();
        }

        /// <summary>
        /// 获取所有街办的税收总额
        /// </summary>
        /// <returns></returns>
        public static List<T> getSumAnnualTax()
        {
            return AnnualTaxChart_DAL<T>.getSumAnnualTax();
        }
    }
}
